home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
011
/
pcutil.lbr
/
pcutil.doc
< prev
Wrap
Text File
|
2011-01-31
|
6KB
|
222 lines
PCUTIL
This program provides several functions that would normally be separate
commands. The intent is to provide as many simple functions as possible
within one COM file rather than many 1K/.5K COM/EXE files.
Note: Only the first two characters of any parameter is checked.
Syntax:
PCUTIL [NUm] { [ON/OFf] }
[CAp] { [ON/OFf] }
or
PCUTIL [MOno ]
[COlor] { [40] [80] }
[SWap ] { [Clear] }
or
PCUTIL [DIal[2]]
[DIal[2]] { [T]|[P] xxx-xxxx }
or
PCUTIL [BEep]
or
PCUTIL [WAit] { [N] }
or
PCUTIL [DU] { [d:] }
or
PCUTIL [MU]
or
PCUTIL [SDir] { [d:][filename[.ext]] } { [/H /P /N|/E|/D|/S|/U] }
or
PCUTIL [PI] { FF|R|N|C|E|DS|DW|U|C1|C2|L6|L8|L0|P6|P8|P0|
N6|N8|C6|C8|TN|TC|SW }
or
PCUTIL [VErsion]
or
PCUTIL [HElp|?]
or
PCUTIL [SEtcolor] FIBIPI
NUm:
Change (toggle) the Num Lock state. ON sets Num Lock on and OFf Num Lock
off. The default is ON.
CAp:
Change (toggle) the Caps Lock state. ON sets Caps Lock on and OFf Caps Lock
off. The default is ON.
MOno:
Switch the active display to the monochrome display on systems that have a
monochrome display. This will cause the monochrome display to be cleared.
COlor:
Switch the active monitor to the color display on systems that have a color
display. 40 or 80 will set the column width. This will cause the color
display to be cleared. The default is 80.
SWap:
Switch (toggle) the active display to the currently inactive display on
systems that have both displays. This is the same as issuing a MOno or
COlor 80. This will toggle in 80 column mode only. If Clear is the second
parameter, the current screen will be cleared before switching to the other
display.
DIal:
DIal command by itself will hang up the phone and drop data terminal ready.
DIal followed by a T or P will "touch tone (T)" or "rotary (P)" dial the
telephone number following the T or P. DIal will also initialize the modem
to 1200 baud so the Hayes will recognize the command. This will not work
with non Hayes compatible modems.
BEep:
Sounds the speaker. This can be used in a BAT to indicate end of job for
example.
WAit:
Causes the PC to wait for N seconds before continuing. This number can
not exceed 6500. To wait longer use WAit multiple times.
DU:
Displays the characteristics of the diskette or hard disk. The current
utilization and free space is also displayed. The default drive is used if
no drive id is entered.
MU:
Displays the maximum memory size, machine type (PC, PC/XT or PCjr), current
memory utilization and available free space.
SD:
Displays the directory of Drive id (or default drive). /H excludes hidden
files. /P prints the directory. The other options are sort options:
/N - Sort by name (default).
/E - Sort by extension (and by name).
/D - Sort by date (descending).
/S - Sort by file size (descending).
/U - Unsorted (by actual directory sequence).
PI:
Initializes the IBM Graphics Printer. Only one option per usage. The
following is explanation of available options:
FF - Sends forms feed to printer to advance to new page.
R - Resets printer to power on settings.
N - Resets printer to normal characters (resets C, E, DS, DW & U).
C - Set printer to compressed mode (132 characters per line)
E - Set printer to emphasized mode.
DS - Set printer to double strike mode (can be used with N, C, E, & DW).
DW - Set printer to double wide mode (can be used with N, C, E, & DS).
U - Set printer to unidirectional mode.
C1 - Set printer to character set 1 (default).
C2 - Set printer to character set 2.
L6 - Set printer to 6 lines to the inch.
L8 - Set printer to 8 lines to the inch.
L0 - Set printer to 10 lines to the inch.
P6 - Set printer to skip perforations (66 line page, 6 lines skipped).
P8 - Set printer to skip perforations (88 line page, 8 lines skipped).
P0 - Set printer to skip perforations (110 line page, 10 lines skipped).
N6 - Set printer to combination of N, L6 & P6.
N8 - Set printer to combination of N, L8 & P8.
C6 - Set printer to combination of C, L6 & P6.
C8 - Set printer to combination of C, L8 & P8.
TN - Set printer to tab every 8 positions for 80 column lines.
TC - Set printer to tab every 8 positions for 132 column lines.
SW - Swaps the software address of LPT1 and LPT2.
VErsion:
Displays the version of PCUTIL.
HElp or ?:
Online help facility for PCUTIL.
SEtcolor:
SEtcolor FIBIPI
Where 'F' is the foreground color, 'B' is the background color and 'P' is
the border color.
The following letters are the valid input characters that are substituted
for 'F', 'B' and 'P':
Z or z for BLACK, B or b for BLUE,
G or g for GREEN, C or c for CYAN,
R or r for RED, M or m for MAGENTA,
Y or y for YELLOW and W or w for WHITE.
The following letters are the valid input characters that are substituted
for 'I':
L or l for Low Intensity and H or h for High Intensity.
EXAMPLES:
SEtcolor WHZLZL
[H]igh Intensity [W]hite foreground, [L]ow Intensity [Z]Black background
and [L]ow Intensity [Z]Black border.
SEtcolor WHBHRL
[H]igh Intensity [W]hite foreground, [H]igh Intensity [B]lue background
and [L]ow Intensity [R]ed border.
NOTES:
Although it is possible to set the background color to high intensity,
this is prevented since setting it to high intensity precludes the use
of the blink option and unpredictable results may occur.
NOTES: I believe this program is callable from BASICA under DOS 2.0/2.1 using
the "SHELL" command. I have not experienced any failures but I'm sure that
I have not tested all possibilities.
Please send any comments or suggestions for improvements or (unlikely)
corrections to NORRIS COUCH care of PC-CONNECT Bulletin Board (203-966-7385)
or P.O.BOX 604, New Canaan, CT 06840.